<?php

require 'header.php';

?>
      <div class="middle">
		<div class="simple-container-left" id="page:main-container">
			<div class="container" id="page:container">
				<div class="main">
					<div class="content-container">
						<div class="content" id="content">
							<div class="content-header">
								<table class="grid-header" cellspacing="0" border="0" >
									<tbody>
										<tr>
											<td style=""><h3 class="icon-head head-customer">Loan Wizard</h3></td>
											<td class="a-right">
												<button type="button" class="scalable back" onclick="setLocation('loan.php')" style=""><span>Search</span></button>
											<!--
												<button type="button" class="scalable" onclick="setLocation(window.location.href)" style=""><span>Edit</span></button>
												<button type="button" class="scalable save" onclick="editForm.submit();" style=""><span>Add Payment</span></button>
											-->
                                                                                        </td>
										</tr>
									</tbody>
								</table>
							</div>
							<div id="messages"></div>

							<form name="form1" id="form1" action="add_coborrower_wizard.php" method="post">
							<div class="entry-edit">
								<h4 class="icon-head head-edit-form fieldset-legend">Business Information</h4>

                                                                        <table width="100%" border="0" cellspacing="0">
									<table width="100%" cellspacing="10" border="0" style="background-color:#eeeeee" >

									<tbody>
								        <tr>
         							            <td>  
                                                                            <table width="100%" cellspacing="0" border="0">
										<tbody>
										<tr>
										    <td>
										    <table width="50%" cellspacing="5" border="0">
										    <tbody>
                                                                                           <tr>
                                                                                               <td width="50%">Use Existing Record</td>
                                                                                               <td width="50%"><input type="checkbox" name="enable_business_info" checked="checked" onclick="enable_fields()"> Enable</td>
                                                                                           </tr>
                                                                                           <tr>
                                                                                               <td>Business ID</td>
                                                                                               <td>
                                                                                                   <select name="business_select" class="required-entry required-entry select" type="select">
										                           <option value="1">0001</option>
		                                                                                           <option value="2">0002</option>
										                           <option value="3">0003</option>
												   </select>
                                                                                               </td>
                                                                                           </tr>
										           <tr>
										               <td>Business ID <span class="required">*</span></td>
											       <td><em>autogenerate</em></td>
										        </tr>
											<tr>
												<td>Status Date<span class="required">*</span></td>
												<td><input name="business_status_date" value="" class="required-entry required-entry input-text" type="text"></td>
										      </tr>
                                                                                      <tr>
												<td>Business Name <span class="required">*</span></td>
												<td><input name="business_name" value="" class="required-entry required-entry input-text" type="text"></td>
											</tr>
											<tr>
												<td>Type of Industry <span class="required">*</span></td>
												<td>
													<select name="business_industry_type" class="required-entry required-entry select" type="select">
													<option value="1">General Store </option>
													<option value="2">Mercado Vendor</option>
													<option value="2">Sari-sari Store</option>
													<option value="2">Tourism</option>
													<option value="2">Transportation</option>
													<option value="2">Entertainment</option>
													<option value="2">Farming</option>
													<option value="2">Fishing</option>
													<option value="2">Mechanical</option>
													<option value="2">Other</option>
													</select>
												</td>
											</tr>
											<tr>
												<td>Average Daily Income <span class="required">*</span></td>
												<td><input name="business_average_daily_income" value="" class="required-entry required-entry input-text" type="text"></td>
											</tr>
											<tr>
												<td>Date Business Established <span class="required">*</span></td>
												<td><input name="business_established_date" value="" class="required-entry required-entry input-text" type="text"></td>
											</tr>
											<tr>
												<td>Days of Operation <span class="required">*</span></td>
												<td>
													<select name="business_days_operation" class="required-entry required-entry select" type="select">
													<option value="1">Daily</option>
													<option value="2">Weekly</option>
													<option value="3">Monthly</option>
													<option value="4">Quarterly</option>
													<option value="5">Semi-Annual</option>
													<option value="6">Annual</option>
													</select>
												</td>
											</tr>
                                                                                  </tbody>
										</table>

												</td>
											</tr>
                                                                                       </tbody>
         </table>
	                                                                    </td>
	                                                                    </tr>
         	</tbody>  
             <tr>
                                                                            <td>
                                                                            <div align="center">
									         <button type="button" class="scalable" onclick="setLocation(window.location.href)" style=""><span>Reset</span></button>
									         <button type="button" class="scalable save" onclick="window.location='add_collateral_wizard.php;" style=""><span>Next</span></button>


								            </div>
                                                                            </td>
                                                                            </tr>
									</table>
									&nbsp;
									<script type="text/javascript"><!--
									function enable_fields() {
										var bizForm = document.form1;
										var checked = !bizForm.enable_business_info.checked;
										var unchecked = bizForm.enable_business_info.checked;

										bizForm.business_select.disabled = checked;
										bizForm.business_status_date.disabled = unchecked;
										bizForm.business_name.disabled = unchecked;
										bizForm.business_industry_type.disabled = unchecked;
										bizForm.business_average_daily_income.disabled = unchecked;
										bizForm.business_established_date.disabled = unchecked;
										bizForm.business_days_operation.disabled = unchecked;   									}
									enable_fields();
									//-->
								</script>
								


							</div>


							</form>
						</div>
					</div>
					
					<div class="section-menu" id="page:left">
						<h3>Loan Center</h3>
						<ul id="loan_info_tabs" class="tabs">
							<li>
						        <a href="add_borrower_wizard.php" title="Loan" class="tab-item-link">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div> Input Borrower</span>
						        </a>
						    </li>
						    <li>
						        <a href="add_coborrower_wizard.php" title="Loan" class="tab-item-link">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div> Input Co-Borrower</span>
						        </a>
						    </li>
						    <li>
						        <a href="add_business_wizard.php" title="Loan" class="tab-item-link active">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div> Input Co-Borrower</span>
						        </a>
						    </li>
						</ul>
						<div class="bottom"></div>
					</div>
              	</div>
			</div>
		</div>
	</div>

<?php

require 'footer.php';

?>